import { RouteRecordRaw } from "vue-router";
/**
 * @description 这里供应商和首页进入两个入口 
 */
const router:Array<RouteRecordRaw> = [{
    path: "/mtm/index",
    component: () => import("@/views/Mtm/index.vue"),
    meta: {
        title: "MTM定制产品",
    }
},
{
    path: "/mtm/spot/index",
    component: () => import("@/views/Mtm/index.vue"),
    meta: {
        title: "现货产品",
    }
},
{
    path: "/mtm/spot/ingredients",
    component: () => import("@/views/Mtm/index.vue"),
    meta: {
        title: "辅料供应",
    }
},
{
    path: "/mtm/spot/clothes",
    component: () => import("@/views/Mtm/index.vue"),
    meta: {
        title: "样衣面料册",
    }
},
{
    path: "/mtm/fabric/index",
    component: () => import("@/views/Mtm/index.vue"),
    meta: {
        title: "面料商城",
    }
},



//从MTM定制进入
{
    path: "/mtm/index/make",
    component: () => import("@/views/Mtm/Make/index.vue"),
    meta: {
        title: "MTM定制产品",
    }
},
//  从现货产品进入
{
    path: "/mtm/spot/index/make",
    component: () => import("@/views/Mtm/Make/index.vue"),
    meta: {
        title: "MTM定制产品",
    }
},
//  从辅料供应进入
{
    path: "/mtm/spot/ingredients/make",
    component: () => import("@/views/Mtm/Make/index.vue"),
    meta: {
        title: "MTM定制产品",
    }
},
//  从样衣面料册进入
{
    path: "/mtm/spot/clothes/make",
    component: () => import("@/views/Mtm/Make/index.vue"),
    meta: {
        title: "MTM定制产品",
    }
},
//  从面料商城进入
{
    path: "/mtm/fabric/index/make",
    component: () => import("@/views/Mtm/Make/index.vue"),
    meta: {
        title: "MTM定制产品",
    }
},






// 现货/辅料/样衣/样册 的详情页
//从MTM定制进入
{
    path: "/mtm/index/spotDetail",
    component: () => import("@/views/Spot/index.vue"),
    meta: {
        title: "现货/辅料/样衣/样册 详情",
    }
},
//  从现货产品进入
{
    path: "/mtm/spot/index/spotDetail",
    component: () => import("@/views/Spot/index.vue"),
    meta: {
        title: "现货/辅料/样衣/样册 详情",
    }
},
//  从辅料供应进入
{
    path: "/mtm/spot/ingredients/spotDetail",
    component: () => import("@/views/Spot/index.vue"),
    meta: {
        title: "现货/辅料/样衣/样册 详情",
    }
},
//  从样衣面料册进入
{
    path: "/mtm/spot/clothes/spotDetail",
    component: () => import("@/views/Spot/index.vue"),
    meta: {
        title: "现货/辅料/样衣/样册 详情",
    }
},
//  从面料商城进入
{
    path: "/mtm/fabric/index/spotDetail",
    component: () => import("@/views/Spot/index.vue"),
    meta: {
        title: "现货/辅料/样衣/样册 详情",
    }
},


//面料的详情页
//从MTM定制进入
{
    path: "/mtm/index/fabricDetail",
    component: () => import("@/views/Fabric/index.vue"),
    meta: {
        title: "面料详情",
    }
},
//  从现货产品进入
{
    path: "/mtm/spot/index/fabricDetail",
    component: () => import("@/views/Fabric/index.vue"),
    meta: {
        title: "面料详情",
    }
},
//  从辅料供应进入
{
    path: "/mtm/spot/ingredients/fabricDetail",
    component: () => import("@/views/Fabric/index.vue"),
    meta: {
        title: "面料详情",
    }
},
//  从样衣面料册进入
{
    path: "/mtm/spot/clothes/fabricDetail",
    component: () => import("@/views/Fabric/index.vue"),
    meta: {
        title: "面料详情",
    }
},
//  从面料商城进入
{
    path: "/mtm/fabric/index/fabricDetail",
    component: () => import("@/views/Fabric/index.vue"),
    meta: {
        title: "面料详情",
    }
}]
export default router;